<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'flight_edit.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
<center><font size="8">航班信息管理</font></center>
  <table width="100%" border="1">
  <tr><td width="10%">航班id</td><td width="10%">所属公司</td><td width="10%">起飞机场</td><td width="10%">降落机场</td><td width="10%">起飞时间</td><td width="10%">降落时间</td><td width="10%">里程</td><td width="30%">操作</td></tr>
  <s:iterator value="flist">
  <tr>
  <td colspan="8">
	<form action="flightaction!flightedit.action" method="post">
	<table width="100%" border="1">
	<tr><td width="10%"><input type="text" name="fi.flightId" value="${flightId }"></td><td width="10%"><s:select list="comlist" listKey="comId"  listValue="comName" name="fi.flightCompany" value="flightCompany" theme="simple"/></td><td width="10%"><s:select list="airportlist" listKey="airportId" listValue="airportName" name="fi.takeOffAirport" theme="simple" value="takeOffAirport"/></td><td width="10%"><s:select list="airportlist" listKey="airportId" listValue="airportName" name="fi.landingAirport" value="landingAirport" theme="simple"/></td><td width="10%"><input type="text" name="fi.takeOffTime" value="${takeOffTime }"></td><td width="10%"><input type="text" name="fi.landingTime" value="${landingTime }"></td><td width="10%"><input type="text" name="fi.totalDistance" value="${totalDistance }"></td><td width="15%"><input type="submit" value="修改"></td><td width="15%"><a href="flightaction!delflight.action?delid=${flightId }">删除</a></td></tr>
	</table>
	</form>  
  </td>
  </tr>
  </s:iterator>
  </table>
  </body>
</html>
